package frame.ddd.lossmodel;

import frame.ddd.lossmodel.basic.Bid;
import frame.ddd.lossmodel.basic.ItemState;
import frame.ddd.lossmodel.basic.MonetaryAmount;
import frame.ddd.lossmodel.basic.User;
import lombok.Data;

import java.io.Serializable;
import java.util.*;

/**
 * desc     : 一个实体类叫做Item，指的是一个拍卖项目
 * dateTime : 2020/8/6 17:15
 *
 * @author cww
 */
@Data
public class Item implements Serializable {
    private Long id = null;
    private int version;
    private String name;
    private User seller;
    private String description;
    private MonetaryAmount initialPrice;
    private MonetaryAmount reservePrice;
    private Date startDate;
    private Date endDate;
    private Set categorizedItems = new HashSet();
    private Collection bids = new ArrayList();
    private Bid successfulBid;
    private ItemState state;
    private User approvedBy;
    private Date approvalDatetime;
    private Date created = new Date();
}
